home *** CD-ROM | disk | FTP | other *** search
/ Freelog 125 / Freelog_MarsAvril2015_No125.iso / ViePratique / gnucash / gnucash-2.6.5-setup.exe / {app} / share / themes / Clearlooks / gtk-2.0 / gtkrc
Text File  |  2009-04-17  |  11KB  |  425 lines

  1.  
  2. # Please keep this gtkrc in sync with the other ones from Clearlooks based themes.
  3.  
  4. gtk-color-scheme = "base_color:#ffffff\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#86ABD9\nselected_fg_color:#ffffff\ntext_color:#1A1A1A\nbg_color:#EDECEB\ntooltip_bg_color:#F5F5B5"
  5.  
  6. style "default" {
  7.     xthickness = 1
  8.     ythickness = 1
  9.  
  10.     #######################
  11.     # Style Properties
  12.     #######################
  13.     GtkButton::child-displacement-x = 1
  14.     GtkButton::child-displacement-y = 1
  15.     GtkButton::default-border = { 0, 0, 0, 0 }
  16.  
  17.     GtkCheckButton::indicator-size = 14
  18.  
  19.     GtkPaned::handle-size = 6
  20.  
  21.     GtkRange::trough-border = 0
  22.     GtkRange::slider-width = 15
  23.     GtkRange::stepper-size = 15
  24.  
  25.     GtkScale::slider-length = 23
  26.     GtkScale::trough-side-details = 1
  27.  
  28.     GtkScrollbar::min-slider-length = 30
  29.     GtkMenuBar::internal-padding = 0
  30.     GtkExpander::expander-size = 16
  31.     GtkToolbar::internal-padding = 1
  32.     GtkTreeView::expander-size = 14
  33.     GtkTreeView::vertical-separator = 0
  34.  
  35.     GtkMenu::horizontal-padding = 0
  36.     GtkMenu::vertical-padding = 0
  37.  
  38.     WnckTasklist::fade-overlay-rect = 0
  39.     # The following line hints to gecko (and possibly other appliations)
  40.     # that the entry should be drawn transparently on the canvas.
  41.     # Without this, gecko will fill in the background of the entry.
  42.     GtkEntry::honors-transparent-bg-hint = 1
  43.  
  44.     GtkEntry::progress-border = { 2, 2, 2, 2 }
  45.  
  46.     ####################
  47.     # Color Definitions
  48.     ####################
  49.     bg[NORMAL]        = @bg_color
  50.     bg[PRELIGHT]      = shade (1.02, @bg_color)
  51.     bg[SELECTED]      = @selected_bg_color
  52.     bg[INSENSITIVE]   = @bg_color
  53.     bg[ACTIVE]        = shade (0.9, @bg_color)
  54.  
  55.     fg[NORMAL]        = @fg_color
  56.     fg[PRELIGHT]      = @fg_color
  57.     fg[SELECTED]      = @selected_fg_color
  58.     fg[INSENSITIVE]   = darker (@bg_color)
  59.     fg[ACTIVE]        = @fg_color
  60.  
  61.     text[NORMAL]      = @text_color
  62.     text[PRELIGHT]    = @text_color
  63.     text[SELECTED]    = @selected_fg_color
  64.     text[INSENSITIVE] = darker (@bg_color)
  65.     text[ACTIVE]      = @selected_fg_color
  66.  
  67.     base[NORMAL]      = @base_color
  68.     base[PRELIGHT]    = shade (0.95, @bg_color)
  69.     base[SELECTED]    = @selected_bg_color
  70.     base[INSENSITIVE] = @bg_color
  71.     base[ACTIVE]      = shade (0.9, @selected_bg_color)
  72.  
  73.     engine "clearlooks" {
  74.         colorize_scrollbar = TRUE
  75.         reliefstyle = 1
  76.         menubarstyle = 2
  77.         toolbarstyle = 1
  78.         animation = FALSE
  79.         radius = 3.0
  80.         style = GUMMY
  81.  
  82.         # Set a hint to disable backward compatibility fallbacks.
  83.         hint = "use-hints"
  84.     }
  85. }
  86.  
  87. style "wide" {
  88.     xthickness = 2
  89.     ythickness = 2
  90. }
  91.  
  92. style "wider" {
  93.     xthickness = 3
  94.     ythickness = 3
  95. }
  96.  
  97. style "entry" {
  98.     xthickness = 3
  99.     ythickness = 3
  100.  
  101.     bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
  102.     fg[SELECTED] = @text_color
  103.  
  104.     engine "clearlooks" {
  105.         focus_color = shade (0.65, @selected_bg_color)
  106.     }
  107. }
  108.  
  109. style "spinbutton" {
  110.  
  111.     engine "clearlooks" {
  112.         hint = "spinbutton"
  113.     }
  114. }
  115.  
  116. style "scale" {
  117.     xthickness = 2
  118.     ythickness = 2
  119.  
  120.     engine "clearlooks" {
  121.         hint = "scale"
  122.     }
  123. }
  124.  
  125. style "vscale" {
  126.  
  127.     engine "clearlooks" {
  128.         hint = "vscale"
  129.     }
  130. }
  131.  
  132. style "hscale" {
  133.  
  134.     engine "clearlooks" {
  135.         hint = "hscale"
  136.     }
  137. }
  138.  
  139. style "scrollbar" {
  140.     xthickness = 2
  141.     ythickness = 2
  142.  
  143.     engine "clearlooks" {
  144.         hint = "scrollbar"
  145.     }
  146. }
  147.  
  148. style "hscrollbar" {
  149.  
  150.     engine "clearlooks" {
  151.         hint = "hscrollbar"
  152.     }
  153. }
  154.  
  155. style "vscrollbar" {
  156.  
  157.     engine "clearlooks" {
  158.         hint = "vscrollbar"
  159.     }
  160. }
  161.  
  162. style "notebook_bg" {
  163.  
  164.     bg[NORMAL]        = shade (1.02, @bg_color)
  165. }
  166.  
  167. style "button" {
  168.     xthickness = 3
  169.     ythickness = 3
  170.  
  171.     bg[NORMAL]        = shade (1.04, @bg_color)
  172.     bg[PRELIGHT]      = shade (1.06, @bg_color)
  173.     bg[ACTIVE]        = shade (0.85, @bg_color)
  174. }
  175.  
  176. # The color is changed by the notebook_bg style, this style
  177. # changes the x/ythickness
  178. style "notebook" {
  179.     xthickness = 3
  180.     ythickness = 3
  181. }
  182.  
  183. style "statusbar" {
  184.  
  185.     engine "clearlooks" {
  186.         hint = "statusbar"
  187.     }
  188. }
  189.  
  190. style "comboboxentry" {
  191.  
  192.     engine "clearlooks" {
  193.         # Note:
  194.         # If you set the appears-as-list option on comboboxes in the theme,
  195.         # then you should set this hint on the combobox instead.
  196.         hint = "comboboxentry"
  197.     }
  198. }
  199.  
  200. style "menubar" {
  201.  
  202.     engine "clearlooks" {
  203.         hint = "menubar"
  204.     }
  205. }
  206.  
  207. style "menu" {
  208.     xthickness = 0
  209.     ythickness = 0
  210.  
  211.     bg[NORMAL]        = shade (1.08, @bg_color)
  212.  
  213.     engine "clearlooks" {
  214.         radius = 0.0
  215.     }
  216. }
  217.  
  218. style "menu_item" {
  219.     xthickness = 2
  220.     ythickness = 3
  221.  
  222.     fg[PRELIGHT]      = @selected_fg_color
  223. }
  224.  
  225. # This style is there to modify the separator menu items. The goals are:
  226. # 1. Get a specific height.
  227. # 2. The line should go to the edges (ie. no border at the left/right)
  228. style "separator_menu_item" {
  229.     xthickness = 1
  230.     ythickness = 0
  231.  
  232.     GtkSeparatorMenuItem::horizontal-padding = 0
  233.     GtkWidget::wide-separators = 1
  234.     GtkWidget::separator-width = 1
  235.     GtkWidget::separator-height = 7
  236. }
  237.  
  238. style "frame_title" {
  239.  
  240.     fg[NORMAL]        = lighter (@fg_color)
  241. }
  242.  
  243. style "treeview" {
  244.  
  245.     engine "clearlooks" {
  246.         hint = "treeview"
  247.     }
  248. }
  249.  
  250. # The almost useless progress bar style
  251. style "progressbar" {
  252.     xthickness = 1
  253.     ythickness = 1
  254.  
  255.     fg[PRELIGHT]      = @selected_fg_color
  256.  
  257.     engine "clearlooks" {
  258.         # Explicitly set the radius for the progress bars inside menu items.
  259.         radius = 3.0
  260.  
  261.         hint = "progressbar"
  262.     }
  263. }
  264.  
  265. # This style is based on the default style, so that the colors from the button
  266. # style are overriden again.
  267. style "treeview_header" = "default" {
  268.     xthickness = 2
  269.     ythickness = 1
  270.  
  271.     engine "clearlooks" {
  272.         hint = "treeview-header"
  273.     }
  274. }
  275.  
  276. style "tooltips" {
  277.     xthickness = 4
  278.     ythickness = 4
  279.  
  280.     bg[NORMAL]        = @tooltip_bg_color
  281.     fg[NORMAL]        = @tooltip_fg_color
  282. }
  283.  
  284. style "nautilus_location" {
  285.  
  286.     bg[NORMAL]        = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
  287. }
  288.  
  289. # Wrokaroudn style for places where the text color is used instead of the fg color.
  290. style "text_is_fg_color_workaround" {
  291.  
  292.     text[NORMAL]      = @fg_color
  293.     text[PRELIGHT]    = @fg_color
  294.     text[SELECTED]    = @selected_fg_color
  295.     text[ACTIVE]      = @fg_color
  296.     text[INSENSITIVE] = darker (@bg_color)
  297. }
  298.  
  299. # Workaround style for menus where the text color is used instead of the fg color.
  300. style "menuitem_text_is_fg_color_workaround" {
  301.  
  302.     text[NORMAL]      = @fg_color
  303.     text[PRELIGHT]    = @selected_fg_color
  304.     text[SELECTED]    = @selected_fg_color
  305.     text[ACTIVE]      = @fg_color
  306.     text[INSENSITIVE] = darker (@bg_color)
  307. }
  308.  
  309. # Workaround style for places where the fg color is used instead of the text color.
  310. style "fg_is_text_color_workaround" {
  311.  
  312.     fg[NORMAL]        = @text_color
  313.     fg[PRELIGHT]      = @text_color
  314.     fg[SELECTED]      = @selected_fg_color
  315.     fg[ACTIVE]        = @selected_fg_color
  316.     fg[INSENSITIVE]   = darker (@bg_color)
  317. }
  318.  
  319. # Style to set the toolbar to use a flat style. This is because the "New" button in
  320. # Evolution is not drawn transparent. So if there is a gradient in the background it will
  321. # look really wrong.
  322. # See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
  323. style "evo_new_button_workaround" {
  324.  
  325.     engine "clearlooks" {
  326.         toolbarstyle = 0
  327.     }
  328. }
  329.  
  330.  
  331. ###############################################################################
  332. # The following part of the gtkrc applies the different styles to the widgets.
  333. ###############################################################################
  334.  
  335. # The default style is applied to every widget
  336. class "GtkWidget" style "default"
  337.  
  338. class "GtkSeparator" style "wide"
  339. class "GtkFrame" style "wide"
  340. class "GtkCalendar" style "wide"
  341. class "GtkEntry" style "entry"
  342.  
  343. class "GtkSpinButton" style "spinbutton"
  344. class "GtkScale" style "scale"
  345. class "GtkVScale" style "vscale"
  346. class "GtkHScale" style "hscale"
  347. class "GtkScrollbar" style "scrollbar"
  348. class "GtkHScrollbar" style "hscrollbar"
  349. class "GtkVScrollbar" style "vscrollbar"
  350.  
  351. # General matching follows. The order is choosen so that the right styles override
  352. # each other. EG. progressbar needs to be more important than the menu match.
  353. widget_class "*<GtkNotebook>" style "notebook_bg"
  354. # This is not perfect, it could be done better.
  355. # (That is modify *every* widget in the notebook, and change those back that
  356. # we really don't want changed)
  357. widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
  358. widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
  359. widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
  360. widget_class "*<GtkNotebook>*<GtkViewport>" style "notebook_bg"
  361. widget_class "*<GtkNotebook>*<GtkScrolledWindow>" style "notebook_bg"
  362.  
  363. widget_class "*<GtkButton>" style "button"
  364. widget_class "*<GtkNotebook>" style "notebook"
  365. widget_class "*<GtkStatusbar>*" style "statusbar"
  366.  
  367. widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
  368. widget_class "*<GtkCombo>*" style "comboboxentry"
  369.  
  370. widget_class "*<GtkMenuBar>*" style "menubar"
  371. widget_class "*<GtkMenu>*" style "menu"
  372. widget_class "*<GtkMenuItem>*" style "menu_item"
  373. widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
  374.  
  375. widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
  376. widget_class "*.<GtkTreeView>*" style "treeview"
  377.  
  378. widget_class "*<GtkProgress>" style "progressbar"
  379.  
  380. # Treeview headers (and similar stock GTK+ widgets)
  381. widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
  382. widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
  383. widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
  384. widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
  385.  
  386. # The window of the tooltip is called "gtk-tooltip"
  387. ##################################################################
  388. # FIXME:
  389. # This will not work if one embeds eg. a button into the tooltip.
  390. # As far as I can tell right now we will need to rework the theme
  391. # quite a bit to get this working correctly.
  392. # (It will involve setting different priorities, etc.)
  393. ##################################################################
  394. widget "gtk-tooltip*" style "tooltips"
  395.  
  396. ##########################################################################
  397. # Following are special cases and workarounds for issues in applications.
  398. ##########################################################################
  399.  
  400. # Workaround for the evolution ETable (bug #527532)
  401. widget_class "*.ETable.ECanvas" style "treeview_header"
  402. # Workaround for the evolution ETree
  403. widget_class "*.ETree.ECanvas" style "treeview_header"
  404.  
  405. # Special case the nautilus-extra-view-widget
  406. # ToDo: A more generic approach for all applications that have a widget like this.
  407. widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
  408.  
  409. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  410. # Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
  411. widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
  412. # This is the part of the workaround that fixes the menus
  413. widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
  414.  
  415. # Work around the usage of GtkLabel inside GtkListItems to display text.
  416. # This breaks because the label is shown on a background that is based on the base color.
  417. widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
  418. # GtkCList also uses the fg color to draw text on top of the base colors.
  419. widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
  420. # Nautilus when renaming files, and maybe other places.
  421. widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
  422.  
  423. # See the documentation of the style.
  424. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
  425.